﻿@model IEnumerable<Unijovem.UI.Models.PregacaoModel>

@{
    ViewBag.Title = "Index";
}

<h2>Index</h2>

<p>
    @Html.ActionLink("Create New", "Manter")
</p>
<table>
    <tr>
        <th>
            IdEvento
        </th>
        <th>
            IdAutor
        </th>
        <th>
            IdPregacao
        </th>
        <th>
            UrlYoutube
        </th>
        <th>
            Titulo
        </th>
        <th>
            Ordem
        </th>
        <th>
            Ativo
        </th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.IdEvento)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.IdAutor)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.IdPregacao)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.UrlYoutube)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Titulo)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Ordem)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Ativo)
        </td>
        <td>
            @Html.ActionLink("Edit", "Manter", new { id=item.Id }) |
            @Html.ActionLink("Details", "Detalhes", new { id=item.Id }) |
            @Html.ActionLink("Delete", "Delete", new { id=item.Id })
        </td>
    </tr>
}

</table>
